home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / August 96 / Re Undo Set Property.5 < prev    next >
Encoding:
Internet Message Format  |  1996-08-07  |  1.5 KB  |  [TEXT/ttxt]

  1. Subject:     Re:Undo Set Property
  2. Sent:        8/7/96 3:50 PM
  3. Received:    8/7/96 4:02 PM
  4. From:        Serge Froment, sfroment@odyssee.net
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >I've thought more about this, and examined a couple of possible designs. In
  9. >the end, I think the best bet is to stick with the current implementation,
  10. >with one minor addition. I'll explain the thinking behind not adding a
  11. >method first, and then I'll explain the modification that I am making.
  12.  
  13. I've thought more about my part design and I am currently considering
  14. changing my Apple Events so my properties are independent of each other. In
  15. that case, the current implementation of FW_CSetPropertyCommand will suit
  16. my needs.
  17.  
  18. The main problem I have is that some of my properties are related to each
  19. other. When I set them independantly, the part data as a whole may become
  20. invalid. What I do now is adjusting other properties so the part data is
  21. always valid.
  22.  
  23. Is it possible to set several properties of a part with a single Apple Event?
  24.  
  25. >What I am doing: I am adding a new method called
  26. >FW_MScriptable::SaveProperty. This method will be called by
  27. >FW_CSetPropertyCommand in the place of GetProperty. By default, this method
  28. >will just call GetProperty. I believe this should provide a solution for
  29. >Serge.
  30.  
  31. In the case I keep my current Apple Event design, a
  32. FW_MScriptable::SaveProperty method can solve my problem, but then I also
  33. need a RestoreProperty method to be called when undoing.
  34.  
  35. Serge
  36.  
  37.  
  38.